package org.jeecg.qis.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.jeecg.qis.entity.QisSpcdetailValue;
import org.jeecg.qis.mapper.QisSpcdetailCfgMapper;
import org.jeecg.qis.mapper.QisSpcdetailValueMapper;
import org.jeecg.qis.service.IQisSpcdetailValueService;
import org.jeecg.qis.vo.QisSpcWarnPage;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

/**
 * @Description: SPC异常报警历史记录
 * @Author: LiCY
 * @Date:   2024-12-16
 * @Version: V1.0
 */
@Service
public class QisSpcdetailValueServiceImpl extends ServiceImpl<QisSpcdetailValueMapper, QisSpcdetailValue> implements IQisSpcdetailValueService {

    @Autowired
    private QisSpcdetailCfgMapper qisSpcdetailCfgMapper;

    /**
     * 根据条件分页查询质量控制图的异常页面信息
     *
     * @param page 分页对象，包含分页参数如当前页码、每页大小等
     * @param qisSpcdetailValue 查询条件对象，包含需要查询的特定条件
     * @return 返回填充了质量控制图异常页面信息的分页对象
     */
    @Override
    public IPage<QisSpcWarnPage> pageList(Page<QisSpcWarnPage> page, QisSpcdetailValue qisSpcdetailValue) {
        // 此处应调用相应的服务或DAO层方法来查询数据，并将结果封装到page对
        return qisSpcdetailCfgMapper.pageList(page,qisSpcdetailValue);
    }
}
